package com.lz.springboot.apollo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;

/**
 * 应用启动入口类
 * @author likejian
 *	
 */
@SpringBootApplication
@EnableApolloConfig  
//@EnableEurekaClient
@EnableCaching
@ComponentScan(basePackages={"com.lz"})  
public class Application {

	private static final Logger LOGGER = LoggerFactory.getLogger(Application.class);
	
	
	public static void main(String[] args) throws Exception {
		LOGGER.info("=====开始启动=====");
		SpringApplication.run(Application.class, args);
		LOGGER.info("=====启动完成=====");
	}
}
